/***************************************************************************
 * Copyright 2012 TXT e-solutions SpA
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * This work was performed within the IoT_at_Work Project
 * and partially funded by the European Commission's
 * 7th Framework Programme under the research area ICT-2009.1.3
 * Internet of Things and enterprise environments.
 *
 * Authors:
 *      Carbone Matteo
 *
 * Contributors:
 *        Domenico Rotondi (TXT e-solutions SpA)
 **************************************************************************/
package it.txt.ens.authorisationService.gui.standalone.util;


/**
 * Contain the constants used on the application
 * 
 */
public class ApplicationPropertiesRepository {
//	
//	private static final String PROPERTY_NAME_PREFIX = "ens.authzService.";
//	private static final String CER_PROPERTY_NAME_PREFIX = PROPERTY_NAME_PREFIX + "cer.";
//	private static final String ACCESS_POINT_PROPERTY_NAME_PREFIX = PROPERTY_NAME_PREFIX + 
//	        "accessPoint.";
//	private static final String NAMESPACE_STUB_PROPERTY_NAME_PREFIX = "ens.namespaceDBStub.";
//	
//	public static final String EXCHANGE_NAME = PROPERTY_NAME_PREFIX + "exchange";
//	public static final String QUEUE_NAME = PROPERTY_NAME_PREFIX + "queue";
//	public static final String ROUTING_KEY = PROPERTY_NAME_PREFIX + "routingKey";
//	public static final String USERNAME = PROPERTY_NAME_PREFIX + "usr";
//	public static final String PASSWORD = PROPERTY_NAME_PREFIX + "pwd";
//	public static final String VIRTUAL_HOST = PROPERTY_NAME_PREFIX + "vHost";
//	public static final String RABBITMQ_PORT = PROPERTY_NAME_PREFIX + "port";
//	public static final String SCHEMAS_DIR = PROPERTY_NAME_PREFIX + "schemasDir";
//	public static final String KEYSTORE = PROPERTY_NAME_PREFIX + "keystore";
//	public static final String GENERATED_PASSWORD_LENGTH = PROPERTY_NAME_PREFIX + "generatedPasswordLength";
//	
//	public static final String KEYSTORE_PWD = PROPERTY_NAME_PREFIX + "keystore.pwd";
//	public static final String PRIVATE_KEY_PWD = CER_PROPERTY_NAME_PREFIX + "privateKey.pwd";
//	public static final String ISSUER = CER_PROPERTY_NAME_PREFIX + "issuer";
//	
//	public static final String QUEUE_NAME_FORMAT = ACCESS_POINT_PROPERTY_NAME_PREFIX + 
//	        "queueNameFormat";
//	
//	public static final String NAMESPACE_EXCHANGE_NAME = NAMESPACE_STUB_PROPERTY_NAME_PREFIX + 
//	        "exchangeName";
//	public static final String NAMESPACE_VIRTUAL_HOST = NAMESPACE_STUB_PROPERTY_NAME_PREFIX + 
//	        "virtualHost";
//	public static final String NAMESPACE_USER_FILE = NAMESPACE_STUB_PROPERTY_NAME_PREFIX +
//	        "usrFile";
//	
//	public static Properties APPLICATION_PROPERTIES = new Properties();
//	
//	public static final String DEFAULT_RABBITMQ_HOST = "localhost";
//	
//	public static void initProperties (String propertiesPath) throws IOException {
//		BufferedInputStream iStream = null;
//		try {
//			iStream = new BufferedInputStream(
//				new FileInputStream(new File (propertiesPath)));
//			APPLICATION_PROPERTIES.load(iStream);
//		} finally {
//			if (iStream != null)
//				iStream.close();
//		}
//	}

//	queue, exchange, routingKey per ricevere le richieste
//	public static final String request_exchange = "request_exchange";
//	public static final String request_queue = "request_queue";
//	public static final String request_routingKey = "request_queue";
//
//	public static final String filePermission = new String("permission.xml");
//	public static final String fileUser = new String("user.xml");
	

//	login Autorization-services
//	public static final String user = "Authorization-Services";
//	public static final String password = "admin";
//	public static final String vHost = "ENS_Access_Request_Broker_Service";
//	public static final String Host = "localhost";
//	public static final Integer port = 5672;

//	path Capability
//	public static final String pathSchemas = "Capability_Libs/Schemas";
//	public static final String pathKeystore = "Capability_Libs/Keystore/capability_keystore.jks";
	
//	operation
	public static final String operationSubscribe = "subscribe";
	public static final String operationPublish = "publish";
	
//	commandScript
	public static final String startServer = "startServer";
	public static final String stopServer = "stopServer";
	public static final String statusServer = "statusServer";
	public static final String manualCommand = "manualCommand";
	public static final String addUser = "addUser";
	public static final String deleteUser = "deleteUser";
	public static final String cangePassUser = "cangePassUser";
	public static final String setAdmin = "setAdmin";
	public static final String deleteAdmin = "deleteAdmin";
	public static final String addVhost = "addVhost";
	public static final String deleteVhost = "deleteVhost";
	public static final String setPermissions = "setPermissions";
	public static final String clearPermissions = "clearPermissions";
	public static final String listPermission = "listPermission";
	public static final String listQueues = "listQueues";
	public static final String listExchange = "listExchange";
	public static final String listBinding = "listBinding";
	public static final String listUser = "listUser";
	public static final String listVhost = "listVhost";
	public static final String listConenction = "listConenction";
	public static final String listChannel = "listChannel";
	public static final String listConsumers = "listConsumers";
	
	

}
